﻿(function(E){
/**
 * 按钮背景图片坐标
 */
E.icon("default", {
	'Source': {XY:"-259px 0"},
	'DocProps': {XY:"-900px -20px"},
	'Save': {XY:"-480px -20px"},
	'NewPage': {XY:"-520px 0"},
	'Preview': {XY:"-420px -20px"},
	'Templates': {XY:"-820px -20px" },
	'Cut': {XY:"-680px 0" },
	'Copy': {XY:"-700px 0" },
	'Paste': {XY:"-560px 0"},
	'PasteText': {XY:"-360px -20px" },
	'PasteToText': {XY:"-360px -20px" },
	'PasteWord': {XY:"-380px -20px" },
	'Print': {XY:"-440px -20px" },
	'SpellCheck': {XY:"-540px -20px" },
	'Undo': {XY:"-179px -40px" },
	'Redo': {XY:"-199px -40px" },
	'Find': {XY:"-520px -20px" },
	'Replace': {XY:"-500px -20px" },
	'SelectAll': {XY:"-400px -20px" },
	'RemoveFormat': {XY:"-580px 0" },
	'Bold': {XY:"-40px -40px"},
	'BoldGroup': {XY:"-40px -40px"},
	'Italic': {XY:"-60px -40px"},
	'Underline': {XY:"-138px -40px" },
	'StrikeThrough': {XY:"-120px 0"},
	'SubScript': {XY:"-600px -40px" },
	'SuperScript': {XY:"-620px -40px" },
	'InsertOrderedList': {XY:"-80px -40px" },
	'InsertUnorderedList': {XY:"-20px -40px" },
	'Outdent': {XY:"-540px -40px" },
	'Indent': {XY:"-400px -40px" },
	'JustifyLeft': {XY:"-460px -40px" },
	'AlignGroup': {XY:"-460px -40px" },
	'JustifyCenter': {XY:"-420px -40px" },
	'JustifyRight': {XY:"-480px -40px" },
	'JustifyFull': {XY:"-440px 0" },
	'Link': {XY:"-520px -40px" },
	'Unlink': {XY:"-640px 0" },
	'Anchor': {XY:"-200px 0" },
	'Image': {XY:"-900px -40px" },
	'Flash': {XY:"-320px -20px" },
	'InsertTable': {XY:"-580px -20px" },
	'TableGroup': {XY:"-580px -20px" },
	'Smiley': {XY:"-60px -20px" },
	'SpecialChar': {XY:"-240px 0" },
	'PageBreak': {XY:"0 -40px" },
	'ForeColor': {XY:"-720px 0"},
	'BackColor': {XY:"-760px 0"},
	'About': {XY:"-340px 0"},
	'Help': {XY:"-340px 0"},
	'FitWindow': {XY:"-100px -20px" },
//	'ShowBlocks': {XY:72 },
	'Blockquote': {XY:"-220px 0" },
	'CreateDiv': {XY:"-260px -20px" },
	
	//新添加的，可能没有语言数据
	'Cleanup': {XY:'-40px 0'},
	'InsertDate': {XY:"-140px -20px"},
	'InsertTime': {XY:"-160px -20px"},
	
	'TableProps': {XY:"-580px -20px"},
	'CellProps': {XY:"-600px -20px"},
	'RemoveTable': {XY:"-620px -20px"},
	'RemoveColumn' : {XY:"-640px -20px"},
	'RemoveRow' : {XY:"-660px -20px"},
	'ColumnInsertAfter' : {XY:"-680px -20px"},
	'ColumnInsertBefore' : {XY:"-700px -20px"},
	'RowInsertAfter' : {XY:"-720px -20px"},
	'RowInsertBefore' : {XY:"-740px -20px"},
//	'MergeCell' : {XY:"-760px -20px"}
	
	'ColumnMergeAfter' : {XY:"-600px -20px"},
	'RowMergeAfter' : {XY:"-820px -20px"},
	'BaikeLink' : {XY:"-500px -40px"},
	'H1' : {XY:"-960px 0"},
	'H2' : {XY:"-980px 0"},
	'HdImage': {XY:"-380px 0" },
	'FontSize': {XY:"none" },
	'FontName': {XY:"none" },
	'Video': {XY:"-320px -40px"},
	'SpecialChar': {XY:"-239px 0"},
	'MultiImage': {XY:"-380px -40px" },
	'Code' : {XY:"-980px -20px" },
	SetColumnAlignLeft : {XY:"-460px -40px" },
	SetColumnAlignRight : {XY:"-480px -40px" },
	SetColumnAlignCenter : {XY:"-420px -40px" },
	SetRowAlignLeft : {XY:"-460px -40px" },
	SetRowAlignRight : {XY:"-480px -40px" },
	SetRowAlignCenter : {XY:"-420px -40px" },
	SetRowAlignLeft : {XY:"-460px -40px" },
	SetRowAlignRight : {XY:"-480px -40px" },
	SetRowAlignCenter : {XY:"-420px -40px" },
	ClearDoc: {XY:"-520px 0" },
	InsertDate : {XY:"-140px -20px" },
	InsertTime : {XY:"-160px -20px" },
	GoogleMap: {XY:"-940px -40px" },
	Reference: {XY:"-920px 0" },
	AutoFormat: {XY:"-340px -40px"}
});


E.icon("mce", {
	'Source': {XY:"-259px 0"},
	'DocProps': {XY:"-900px -20px"},
	'Save': {XY:"-480px -20px"},
	'NewPage': {XY:"-520px 0"},
	'Preview': {XY:"-420px -20px"},
	'Templates': {XY:"-820px -20px" },
	'Cut': {XY:"-680px 0" },
	'Copy': {XY:"-700px 0" },
	'Paste': {XY:"-560px 0"},
	'PasteText': {XY:"-360px -20px" },
	'PasteToText': {XY:"-360px -20px" },
	'PasteWord': {XY:"-380px -20px" },
	'Print': {XY:"-440px -20px" },
	'SpellCheck': {XY:"-540px -20px" },
	'Undo': {XY:"-158px 0" },
	'Redo': {XY:"-99px 0" },
	'Find': {XY:"-520px -20px" },
	'Replace': {XY:"-500px -20px" },
	'SelectAll': {XY:"-400px -20px" },
	'RemoveFormat': {XY:"-580px 0" },
	'Bold': {XY:"0 0"},
	'BoldGroup': {XY:"0 0"},
	'Italic': {XY:"-60px 0"},
	'Underline': {XY:"-140px 0" },
	'StrikeThrough': {XY:"-120px 0"},
	'SubScript': {XY:"-600px 0" },
	'SuperScript': {XY:"-620px 0" },
	'InsertOrderedList': {XY:"-80px 0" },
	'InsertUnorderedList': {XY:"-20px 0" },
	'Outdent': {XY:"-540px 0" },
	'Indent': {XY:"-400px 0" },
	'JustifyLeft': {XY:"-460px 0" },
	'AlignGroup': {XY:"-460px 0" },
	'JustifyCenter': {XY:"-420px 0" },
	'JustifyRight': {XY:"-480px 0" },
	'JustifyFull': {XY:"-440px 0" },
	'Link': {XY:"-520px -40px" },
	'Unlink': {XY:"-640px 0" },
	'Anchor': {XY:"-200px 0" },
	'Image': {XY:"-380px 0" },
	'Flash': {XY:"-320px -20px" },
	'InsertTable': {XY:"-580px -20px" },
	'TableGroup': {XY:"-580px -20px" },
	'Smiley': {XY:"-60px -20px" },
	'SpecialChar': {XY:"-240px 0" },
	'PageBreak': {XY:"0 -40px" },
	'ForeColor': {XY:"-720px 0"},
	'BackColor': {XY:"-760px 0"},
	'About': {XY:"-340px 0"},
	'Help': {XY:"-340px 0"},
	'FitWindow': {XY:"-100px -20px" },
//	'ShowBlocks': {XY:72 },
	'Blockquote': {XY:"-220px 0" },
	'CreateDiv': {XY:"-260px -20px" },
		
	//新添加的，可能没有语言数据
	'Cleanup': {XY:'-40px 0'},
	'InsertDate': {XY:"-140px -20px"},
	'InsertTime': {XY:"-160px -20px"},
	
	'TableProps': {XY:"-580px -20px"},
	'CellProps': {XY:"-600px -20px"},
	'RemoveTable': {XY:"-620px -20px"},
	'RemoveColumn' : {XY:"-640px -20px"},
	'RemoveRow' : {XY:"-660px -20px"},
	'ColumnInsertAfter' : {XY:"-680px -20px"},
	'ColumnInsertBefore' : {XY:"-700px -20px"},
	'RowInsertAfter' : {XY:"-720px -20px"},
	'RowInsertBefore' : {XY:"-740px -20px"},
//	'MergeCell' : {XY:"-760px -20px"}
	
	'ColumnMergeAfter' : {XY:"-600px -20px"},
	'RowMergeAfter' : {XY:"-820px -20px"},
	'BaikeLink' : {XY:"-500px -40px"},
	'H1' : {XY:"-960px 0"},
	'H2' : {XY:"-980px 0"},
	'FontSize': {XY:"none" },
	'FontName': {XY:"none" },
	'Video': {XY:"-700px -40px"},
	'SpecialChar': {XY:"-239px 0"},
	'MultiImage': {XY:"-380px -40px" },
	'Code' : {XY:"-980px -20px" },
	SetColumnAlignLeft : {XY:"-460px -40px" },
	SetColumnAlignRight : {XY:"-480px -40px" },
	SetColumnAlignCenter : {XY:"-420px -40px" },
	SetRowAlignLeft : {XY:"-460px -40px" },
	SetRowAlignRight : {XY:"-480px -40px" },
	SetRowAlignCenter : {XY:"-420px -40px" },
	SetRowAlignLeft : {XY:"-460px -40px" },
	SetRowAlignRight : {XY:"-480px -40px" },
	SetRowAlignCenter : {XY:"-420px -40px" },
	ClearDoc: {XY:"-520px 0" },
	InsertDate : {XY:"-140px -20px" },
	InsertTime : {XY:"-160px -20px" },
	GoogleMap: {XY:"-940px -40px" },
	Reference: {XY:"-920px 0" },
	AutoFormat: {XY:"-340px -40px"}
});

})(jQEditor);

/*
问题1：
为什么不将按钮背景图片坐标写在CSS文件，而要在这里定义成js对象？

回答1：
假如使用CSS定义，很可能像下面这样会有很多重复的字符串，
比如 background-position，为了使用尽量少的字符数，顾改为使用JS对象的方式。

.jqe-mce .Source{background-position:-260px 0;}
.jqe-mce .DocProps{background-position:-900px -20px;}
.jqe-mce .Save{background-position:-480px -20px;}
.jqe-mce .NewPage{background-position:-520px 0;}
.jqe-mce .Preview{background-position:-420px -20px;}
.jqe-mce .Templates{background-position:-820px -20px;}
.......

问题2：
这些JS坐标是怎么起作用的？

回答2：
在编辑器初始化时，会生成类似上面的CSS代码并加载在head当中。
详见core.js E.init()方法，大约在第1000行
*/
